package com.iflytek.edu.pdc.uc.elasticsearch.support.Builder;

import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.Operator;

/**
 * @Description:
 * @author: liux
 * @date: 2019/3/8 11:45 PM
 */
public class QueryCondition {

    private BoolQueryBuilder queryBuilder;
    private String operator;

    public BoolQueryBuilder getQueryBuilder() {
        return queryBuilder;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public void setQueryBuilder(BoolQueryBuilder queryBuilder) {
        this.queryBuilder = queryBuilder;
    }
    public QueryCondition(QueryConditionsBuilder builder){
        queryBuilder=builder.queryBuilder;
        operator=builder.operator;
    }
}
